package indi.wshape1.takeawaydeliveryinfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import indi.wshape1.takeawaydeliveryinfo.pojo.Group;

import java.util.List;

/**
 * @author Wshape1
 * @description 针对表【group】的数据库操作Service
 * @since 2023-01-17 12:57:25
 */
public interface GroupService extends IService<Group> {

    /**
     * 获取区域名为blockName下的groupName列表
     *
     * @param blockName
     * @return
     */
    List<String> getGroupNameByBlockName(String blockName);

    /**
     * 根据blockName keyword获取group列表
     * blockName为null则无限制
     * keyword为空则无限制
     *
     * @param blockName
     * @param keyword
     * @return
     */
    List<Group> getListByBlockNameAndKeyword(String blockName, String keyword);

    /**
     * 批量移除group通过blockId
     *
     * @param ids
     * @return
     */
    int removeBatchByBlockIds(List<Integer> ids);
}
